﻿<title>{$webTitle}-{:config("web_webname")}</title>
<div class="app-header t-v bg-bai dl2 bb b-hui"><span class="header-l t-v nowrap" onclick="x.mclose();"><i
        class="icon icon-pleft f9"></i>返回</span> <span class="header-c t-v t-c nowrap">充值账户余额</span> <span
        class="header-r t-v t-r nowrap" onclick=""><i class="icon  f10"></i></span></div>
<div class="app-content bg-bai f6">
    <div class="p4 o-h">
        <div class="mt3 f7">充值金额</div>
        <div class="mt5 pb1 t-v"><p class="w9 h12 f15 hei bb">¥</p>
            <p class="w58 mt0 f15"><input type="number" id="shoprmb" class="form w h12 bb" placeholder="..." value=""
                                          maxlength="6" onkeypress="return x.ints(this,6,6);"></p></div>
							<div class="box_list t-v">
					{if condition="config('sys_is_alipay') eq 1"}
					<div box-type="alipay" class="h8 pl1 pr2 t-v f3 b b-hui mr2 active"><i
					class="icon icon-zfbpay f8 lan pr1" style="padding-left: 6px;"></i> 支付宝<img src="//cdn.istt.cn/cdn/img/box.png"></div>
					{/if}
					{if condition="config('sys_is_wxpay') eq 1"}
                        <div box-type="wxpay" class="h8 pl1 pr2 t-v f3 b b-hui mr2"><i
                    class="icon icon-wxpay f8 lv pr1" style="padding-left: 6px;"></i> 微信<img src="//cdn.istt.cn/cdn/img/box.png"></div>
					{/if}
					{if condition="config('sys_is_qqpay') eq 1"}
                        <div box-type="qqpay" class="h8 pl1 pr2 t-v f3 b b-hui mr2"><i
                    class="icon icon-qqpay f8 dlan pr1" style="padding-left: 6px;"></i> QQ<img src="//cdn.istt.cn/cdn/img/box.png"></div>
					{/if}
					 <input type="hidden" name="type" value="alipay">
					</div>
        <div class="mt8">
            <button class="btn btn-qing btn-md w" onclick="ajax_shop_rmb();">立 即 支 付</button>
        </div>
    </div>
</div>
<script>
    function ajax_shop_rmb() {
        var rmb = x.getval('#shoprmb', '请输入充值金额');
        if (!rmb) return;
        if (rmb == 0 || rmb == undefined || rmb == '') {
            x.msg('充值金额不正确！');
            return;
        }
        var type = $('input[name="type"]').val();
		x.ajax('{:url('user_ajax/shop',['act'=>'rmb'])}', '&shopid='+rmb+'&shop=rmb&pay_type=' + type);
    }
</script>